<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Thymeleaf的常用案例</title>
</head>
<body>
<h1 th:text="${message}">Message</h1>
<p th:text="*{user.name}">Name</p>
<a th:href="@{/home}">入门案例</a>
<p th:text="#{welcome.message}">Welcome</p>
<ul>
    <li th:each="item : ${items}" th:text="${item}"></li>
</ul>
<div th:if="${loggedIn}">Welcome!</div>
<div th:insert="~{fragments/header :: header}"></div>
</body>
</html>